<%@ page contentType="text/html; charset=UTF-8" isELIgnored="false"%>
<%String path=request.getContextPath(); %>
<!-- <span>开始日期：<label class="laydate-icon" id="start" style="width: 20%; height: 30px;"></label></span>
<span>结束日期：<label class="laydate-icon" id="end" style="width: 20%; height: 30px;"></label></span> -->
<script>

/*
 * 入职率、离职率
 */
var startEntryAndLeaveOffice = {
  elem: '#startEntryAndLeaveOffice',
  format: 'YYYY-MM',
  min: '2000-06', //设定最小日期为当前日期laydate.now()
  max: '2099-06', //最大日期
  istime: true,
  istoday: false,
  choose: function(datas){
     end.min = datas; //开始日选好后，重置结束日的最小日期
     end.start = datas //将结束日的初始值设定为开始日
  }
};
var endEntryAndLeaveOffice = {
  elem: '#endEntryAndLeaveOffice',
  format: 'YYYY-MM',
 // min: laydate.now(),
  min: '2000-06',
  max: '2099-06',
  istime: true,
  istoday: false,
  choose: function(datas){
    start.max = datas; //结束日选好后，重置开始日的最大日期
  }
};
laydate(startEntryAndLeaveOffice);
laydate(endEntryAndLeaveOffice);

/*
 * 员工增长率
 */
var startEmployeeGrowth = {
  elem: '#startEmployeeGrowth',
  format: 'YYYY-MM',
  min: '2000-06', //设定最小日期为当前日期laydate.now()
  max: '2099-06', //最大日期
  istime: true,
  istoday: false,
  choose: function(datas){
     end.min = datas; //开始日选好后，重置结束日的最小日期
     end.start = datas //将结束日的初始值设定为开始日
  }
};
var endEmployeeGrowth = {
  elem: '#endEmployeeGrowth',
  format: 'YYYY-MM',
 // min: laydate.now(),
  min: '2000-06',
  max: '2099-06',
  istime: true,
  istoday: false,
  choose: function(datas){
    start.max = datas; //结束日选好后，重置开始日的最大日期
  }
};
laydate(startEmployeeGrowth);
laydate(endEmployeeGrowth);

/*
 *HC指标
 */
 
 var startHCTarget = {
		  elem: '#startHCTarget',
		  format: 'YYYY-MM',
		  min: '2000-06', //设定最小日期为当前日期laydate.now()
		  max: '2099-06', //最大日期
		  istime: true,
		  istoday: false,
		  choose: function(datas){
			 endHCTarget.min = datas; //开始日选好后，重置结束日的最小日期
		     endHCTarget.start = datas //将结束日的初始值设定为开始日
		  }
		};
		var endHCTarget = {
		  elem: '#endHCTarget',
		  format: 'YYYY-MM',
		  min: '2000-06',
		  max: '2099-06',
		  istime: true,
		  istoday: false,
		  choose: function(datas){
			startHCTarget.max = datas; //结束日选好后，重置开始日的最大日期
		  }
		};
		laydate(startHCTarget);
		laydate(endHCTarget);
		
/*
 *HC周报
 */
 
 var startHCWeeklyReports = {
		  elem: '#startHCWeeklyReports',
		  format: 'YYYY-MM-DD',
		  min: '2000-06-06', //设定最小日期为当前日期laydate.now()
		  max: '2099-06-06', //最大日期
		  istime: true,
		  istoday: false,
		  choose: function(datas){
			 end.min = datas; //开始日选好后，重置结束日的最小日期
		     end.start = datas //将结束日的初始值设定为开始日
		  }
		};
		var endHCWeeklyReports = {
		  elem: '#endHCWeeklyReports',
		  format: 'YYYY-MM-DD',
		  min: '2000-06-06',
		  max: '2099-06-06',
		  istime: true,
		  istoday: false,
		  choose: function(datas){
			start.max = datas; //结束日选好后，重置开始日的最大日期
		  }
		};
		laydate(startHCWeeklyReports);
		laydate(endHCWeeklyReports);
		
		
		/*
		 *年度总额增长率
		 */
		 
		 var startAnnualGrowthRateOfTotalCompensation = {
				  elem: '#startAnnualGrowthRateOfTotalCompensation',
				  format: 'YYYY',
				  min: '2000', //设定最小日期为当前日期laydate.now()
				  max: '2099', //最大日期
				  istime: true,
				  istoday: false,
				  choose: function(datas){
					  end.min = datas; //开始日选好后，重置结束日的最小日期
					  end.start = datas //将结束日的初始值设定为开始日
				  }
				};
				var endAnnualGrowthRateOfTotalCompensation = {
				  elem: '#endAnnualGrowthRateOfTotalCompensation',
				  format: 'YYYY',
				  min: '2000',
				  max: '2099',
				  istime: true,
				  istoday: false,
				  choose: function(datas){
					start.max = datas; //结束日选好后，重置开始日的最大日期
				  }
				};
				laydate(startAnnualGrowthRateOfTotalCompensation);
				laydate(endAnnualGrowthRateOfTotalCompensation);	
				
		
		/*
		 *薪资总览
		 */
		 
		 var startPayOverview = {
				  elem: '#startPayOverview',
				  format: 'YYYY-MM',
				  min: '2000-06', //设定最小日期为当前日期laydate.now()
				  max: '2099-06', //最大日期
				  istime: true,
				  istoday: false,
				  choose: function(datas){
					  end.min = datas; //开始日选好后，重置结束日的最小日期
					  end.start = datas //将结束日的初始值设定为开始日
				  }
				};
				var endPayOverview = {
				  elem: '#endPayOverview',
				  format: 'YYYY-MM',
				  min: '2000-06',
				  max: '2099-06',
				  istime: true,
				  istoday: false,
				  choose: function(datas){
					start.max = datas; //结束日选好后，重置开始日的最大日期
				  }
				};
				laydate(startPayOverview);
				laydate(endPayOverview);	
		
	
				
</script>
